package com.wxb.service.impl;

import com.wxb.domain.MallCommentEntity;
import com.wxb.mapper.MallCommentMapper;
import com.wxb.service.IMallCommentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Date 2025-05-30 14:29
 * @Version 1.0
 * @Description
 * @ClassName MallCommentServiceImpl
 **/
@Service
public class MallCommentServiceImpl implements IMallCommentService {
    @Autowired
    private MallCommentMapper commentDao;


    public MallCommentEntity queryObject(Integer id) {
        return commentDao.queryObject(id);
    }


    public List<MallCommentEntity> queryList(Map<String, Object> map) {
        return commentDao.queryList(map);
    }


    public int queryTotal(Map<String, Object> map) {
        return commentDao.queryTotal(map);
    }

    public int queryhasPicTotal(Map<String, Object> map) {
        return commentDao.queryhasPicTotal(map);
    }

    public int save(MallCommentEntity comment) {
        return commentDao.save(comment);
    }


    public void update(MallCommentEntity comment) {
        commentDao.update(comment);
    }


    public void delete(Integer id) {
        commentDao.delete(id);
    }


    public void deleteBatch(Integer[] ids) {
        commentDao.deleteBatch(ids);
    }
}
